#ifndef MYNOT_TRANSLATION_H
#define MYNOT_TRANSLATION_H

#include <QObject>
//数据库
#include<QSqlDatabase>
#include<QMessageBox>
#include<QSqlError>
#include<QSqlQuery>
#include<QVariantList>
#include<QTextCodec>

class mynot_translation : public QObject
{
    Q_OBJECT
public:
    explicit mynot_translation(QObject *parent = nullptr);
    void sql_engchi(QString engfile,QString chifile);
    void chunru_srt(QString engfile,QString chifile);
    void chunru_lrc(QString engfile,QString chifile);
    bool isnum(QString str);
    double totime_lrc(QString arrtime);
    //
    //双语字幕
    void chunru_shuanru(QString filename);
    //编码

    bool isGBK(unsigned char* data, int len);

    double totime(QByteArray arrtime);
    void shanchubiao();
signals:

private:


};

#endif // MYNOT_TRANSLATION_H
